package cn.herlioner.pojo;

import java.io.Serializable;
import cn.herlioner.pojo.Teacher;
import cn.herlioner.pojo.TSObject;
import cn.herlioner.pojo.College;
import cn.herlioner.pojo.Judge;

public class CRUObject implements Serializable {
	private Long objnum;
	private long objnature;
	public long getObjnature() {
		return objnature;
	}


	public void setObjnature(long objnature) {
		this.objnature = objnature;
	}

	private String objname;
	private String objtime;
	private String bookname;
	private String place;
	private Long credits;
	private Long ltimes;
	private Long clgnum;
	private String judgebook;
	private Long allowance;
	private Long capacity;
	private String examtime;
	private String examplace;
	private Long teanum;
	private String teaname;
	private String clgname;
	private String judgeobjecttakecpl;
	
	public CRUObject() {
		// TODO Auto-generated constructor stub
	}
	
	
	public String getBookname() {
		return bookname;
	}


	public void setBookname(String bookname) {
		this.bookname = bookname;
	}


	public Long getTeanum() {
		return teanum;
	}


	public void setTeanum(Long teanum) {
		this.teanum = teanum;
	}


	public String getJudgebook() {
		return judgebook;
	}
	public void setJudgebook(String judgebook) {
		this.judgebook = judgebook;
	}
	public Long getObjnum() {
		return objnum;
	}

	public void setObjnum(Long objnum) {
		this.objnum = objnum;
	}

	public String getObjname() {
		return objname;
	}

	public void setObjname(String objname) {
		this.objname = objname;
	}

	public String getObjtime() {
		return objtime;
	}

	public void setObjtime(String objtime) {
		this.objtime = objtime;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public Long getCredits() {
		return credits;
	}

	public void setCredits(Long credits) {
		this.credits = credits;
	}

	public Long getLtimes() {
		return ltimes;
	}

	public void setLtimes(Long ltimes) {
		this.ltimes = ltimes;
	}

	public Long getClgnum() {
		return clgnum;
	}

	public void setClgnum(Long clgnum) {
		this.clgnum = clgnum;
	}

	public Long getAllowance() {
		return allowance;
	}

	public void setAllowance(Long allowance) {
		this.allowance = allowance;
	}

	public Long getCapacity() {
		return capacity;
	}

	public void setCapacity(Long capacity) {
		this.capacity = capacity;
	}

	public String getExamtime() {
		return examtime;
	}

	public void setExamtime(String examtime) {
		this.examtime = examtime;
	}

	public String getExamplace() {
		return examplace;
	}

	public void setExamplace(String examplace) {
		this.examplace = examplace;
	}

	public String getTeaname() {
		return teaname;
	}

	public void setTeaname(String teaname) {
		this.teaname = teaname;
	}

	public String getClgname() {
		return clgname;
	}

	public void setClgname(String clgname) {
		this.clgname = clgname;
	}

	public String getJudgeobjecttakecpl() {
		return judgeobjecttakecpl;
	}

	public void setJudgeobjecttakecpl(String judgeobjecttakecpl) {
		this.judgeobjecttakecpl = judgeobjecttakecpl;
	}
	
	public Long getteanum() {
		return teanum;
	}
	public void setteanum(Long teanum) {
		this.teanum = teanum;
	}
	@Override
	public String toString() {
		return "CRUObject [objnum=" + objnum + ", objname=" + objname
				+ ", objtime=" + objtime + ", place=" + place + ", credits="
				+ credits + ", ltimes=" + ltimes + ", clgnum=" + clgnum
				+ ", allowance=" + allowance + ", capacity=" + capacity
				+ ", examtime=" + examtime + ", examplace=" + examplace
				+ ", teaname=" + teaname + ", clgname=" + clgname
				+ ", judgeobjecttakecpl=" + judgeobjecttakecpl + "]";
	}
	
	public void set(TSObject obj,Teacher teacher,College college){
		this.objnum = obj.getObjnum();
		this.objname = obj.getObjname();
		this.objtime  = obj.getObjtime();
		this.place = obj.getPlace();
		this.credits = obj.getCredits();
		this.ltimes = obj.getLtimes();
		this.clgnum = obj.getClgnum();
		this.allowance = obj.getAllowance();
		this.capacity = obj.getCapacity();
		this.examtime = obj.getExamtime();
		this.examplace = obj.getExamplace();
		this.teaname = teacher.getTeaname();
		this.clgname = college.getClgname();
		this.bookname = obj.getBookname();
		this.objnature = obj.getObjnature();
		this.bookname = obj.getBookname();
	}
	
	public void set(TSObject tsObject, Teacher teacher) {
		this.objtime = tsObject.getObjtime();
		this.objname = tsObject.getObjname();
		this.place = tsObject.getPlace();
		this.objnum = tsObject.getObjnum();
		
	}
	
	public void set(Teacher teacher, TSObject obj,College college) {
		this.objnum = obj.getObjnum();
		this.teanum = teacher.getTeanum();
		this.objnum = obj.getObjnum();
		this.objname = obj.getObjname();
		this.objtime  = obj.getObjtime();
		this.place = obj.getPlace();
		this.credits = obj.getCredits();
		this.ltimes = obj.getLtimes();
		this.clgnum = obj.getClgnum();
		this.allowance = obj.getAllowance();
		this.capacity = obj.getCapacity();
		this.examtime = obj.getExamtime();
		this.examplace = obj.getExamplace();
		this.teaname = teacher.getTeaname();
		this.objnature = obj.getObjnature();
		this.clgname = college.getClgname();
	}
}
